<%@page import="dk.itu.pam.model.*"%>
<%@page import="dk.itu.pam.util.*"%>
<%@page import="java.util.HashMap"%>



<%@page import="java.util.ArrayList"%>


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>


<%
	ServletContext c = request.getServletContext();
	HttpSession s = request.getSession();
	Basket sb = (Basket) s.getAttribute("basket");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="layout/style.css" />
<title><%=title%></title>
</head>
<body>
	<h3>Current user:
	<%
		User cu = (User) s.getAttribute("currentUser");
		if (cu != null)
			out.print(cu.toString());
		else
			out.print("There is no current user");
	%>. Number of pizzas: 
	<%	
		Basket sessionBasket = (Basket) s.getAttribute("basket");
		if (sessionBasket != null){
			int pizzacount = sessionBasket.getPizzaCount();
				out.print(pizzacount);
			}
		else
			out.print("0");
	%></h3>

	<ul id="nav-menu">
		<li><a href="browse.jsp?page=0">PIZZAS</a></li>
		<li><a href="login.jsp">LOGIN</a></li>
		<li><a href="signup.jsp">SIGNUP</a></li>
		<li><a href="basket.jsp">BASKET</a></li>
		<li><a href="adminpage.jsp">ADMIN</a></li>
	</ul>
	
	<br><br>